/*
 * SongInfoDialog.java
 *
 * Created on April 8, 2006, 11:59 AM
 */

package com.bff.slimserver.musicjukebox.ui;

import com.bff.bjj.ui.component.BJJButton;
import com.bff.bjj.utils.Utils;
import org.bff.slimserver.musicobjects.SlimPlayableItem;

/**
 *
 * @author  Bill
 */
public class SongInfoDialog extends javax.swing.JDialog {
    private SlimPlayableItem song;
    /** Creates new form SongInfoDialog */
    public SongInfoDialog(java.awt.Frame parent, boolean modal, SlimPlayableItem song) {
        super(parent, modal);
        this.song = song;
        initComponents();
        Utils.centerInParent(this, parent);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btnPanel = new javax.swing.JPanel();
        btnDone = new BJJButton();
        songInfoPanel = new com.bff.slimserver.musicjukebox.ui.SongInfoPanel(song, true, true);

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Song Info");

        btnPanel.setBackground(java.awt.Color.lightGray);

        btnDone.setText("Done");
        btnDone.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDoneActionPerformed(evt);
            }
        });
        btnPanel.add(btnDone);

        getContentPane().add(btnPanel, java.awt.BorderLayout.SOUTH);

        songInfoPanel.setBackground(java.awt.Color.lightGray);
        songInfoPanel.setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10));
        getContentPane().add(songInfoPanel, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents
    
    private void btnDoneActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDoneActionPerformed
        dispose();
    }//GEN-LAST:event_btnDoneActionPerformed
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnDone;
    private javax.swing.JPanel btnPanel;
    private com.bff.slimserver.musicjukebox.ui.SongInfoPanel songInfoPanel;
    // End of variables declaration//GEN-END:variables
    
}
